﻿using System;
using System.Html;

namespace JenkinsView
{
    public class Storage
    {
        [EvalAtCompile, NoCompile]
        private const string SVR_DATA_KEY = "svrs";

        public static string LoadData()
        {
            return Window.WindowInstance.LocalStorage.GetItem(SVR_DATA_KEY);
        }

        public static void SaveData(string data)
        {
            Console.Log("Save: " + data);
            Window.WindowInstance.LocalStorage.SetItem(SVR_DATA_KEY, data);
        }
    }
}
